package com.house365.core.util;

import java.io.File;

/**
 *@Author Rick.Ping
 *@Date 2013-11-19
 *@Comment
 **/
public class UrlUtil {
	public static boolean isMIMEType(String url) {
		String end = url
				.substring(url.lastIndexOf(".") + 1, url.length())
				.toLowerCase();
		if (end.equals("m4a") || end.equals("mp3") || end.equals("mid")
				|| end.equals("xmf") || end.equals("ogg") || end.equals("wav")) {
			return true;
		} else if (end.equals("3gp") || end.equals("mp4")) {
			return true;
		} else if (end.equals("jpg") || end.equals("gif") || end.equals("png")
				|| end.equals("jpeg") || end.equals("bmp")) {
			return true;
		} else if (end.equals("apk")) {
			return true;
		} else if (end.equals("doc") || end.equals("docx")) {
			return true;
		} else if (end.equals("xls") || end.equals("xlsx")) {
			return true;
		} else if (end.equals("ppt") || end.equals("pptx")) {
			return true;
		} else if (end.equals("pdf")) {
			return true;
		} else {
			return  false;
		}
	}
}
